package com.woniu.Service;

import com.woniu.entity.UserRole;

import java.util.List;
import java.util.Set;

/**
 * @Author: Gwj
 * @Date: 2024/7/4 17:03
 */
public interface UserRoleService {
    //获取用户的权限
    Set<Integer> getRoleByAccountId(Integer accountId) throws Exception;

    //为用户添加角色
    int addRoleByAccountId(Integer accountId, List<UserRole> list)throws Exception;
}
